package com.lmsm.common.request;


import com.lmsm.common.lang.ToString;

public class PageRequest extends ToString {
    private static final long serialVersionUID = -8053921539330824255L;
    public int pageNum = 1;
    public int pageSize = 15;

    public PageRequest() {
    }

    public PageRequest(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return this.pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getSkip(long count) {
        return pageSize * pageNum;
    }
}

